﻿using System.Net.Http;
using System.Threading;
using System.Threading.RateLimiting;

namespace FlyingEye.Middlewares.RateLimiting
{
    public class ConcurrentUpDownCounter
    {
        private long _count = 0;

        public void Decrement()
        {
            Interlocked.Decrement(ref _count);
        }

        public void Increment()
        {
            Interlocked.Increment(ref _count);
        }

        public long Count => _count;
    }

    public class UserPartitionedRateLimiterFactory
    {
       
    }
}
